package com.hurl.waguji.base;

import weibo4j.Timeline;
import weibo4j.Weibo;
import weibo4j.model.WeiboException;
import weibo4j.util.WeiboConfig;

public class WeiboHelper {
	public static void updateStatus(String msg){
		Weibo weibo = new Weibo();
		String token = WeiboConfig.getValue("accessToken");
		weibo.setToken(token);
		
		Timeline tl = new Timeline();
		try {
			tl.UpdateStatus(msg);
		} catch (WeiboException e) {
			e.printStackTrace();
		}
	}
}
